from django.conf.urls import url
from . import views

urlpatterns = [
    url(r'^register/$', views.Register.as_view()),
    url(r'^usernames/(?P<username>[a-zA-Z0-9_-]{5,20})/count/$', views.CheckUsernameView.as_view()),
    url(r'^mobiles/(?P<mobile>\d{11})/count/$', views.CheckMobleView.as_view()),
    url(r'^login/$', views.LoginView.as_view()),
    url(r'^info/$', views.UserInfoView.as_view()),
    url(r'^emails/$', views.EmailView.as_view()),
    url(r'^verify/emails/$', views.EmailView.as_view()),
    url(r'^addresses/$', views.AddressesView.as_view()),
    url(r'^addresses/create/$', views.AddressesCreateView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/$', views.AddressesUpdateView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/default/$', views.AddressesDefaultView.as_view()),
    url(r'^password/$', views.UserPassWord.as_view()),
    url(r'^find_password/$', views.FindPassWordView.as_view()),
    url(r'^accounts/(?P<username>[a-zA-Z0-9_-]{5,20})/sms/token/$', views.AccountsView.as_view()),
    url(r'^sms_codes/$', views.SMSPasswordView.as_view()),
    url(r'^accounts/(?P<username>[a-zA-Z0-9_-]{5,20})/password/token/$', views.VerirySMSView.as_view()),
    url(r'^users/(?P<user_id>\d+)/password/$', views.VeriryPasswordView.as_view()),


]
